/*
 * XML Type:  BodyMovimientosXContratoRq
 * Namespace: http://grupobbva.com.pe/HarecService/
 * Java type: pe.com.grupobbva.harecservice.BodyMovimientosXContratoRq
 *
 * Automatically generated - do not modify.
 */
package pe.com.grupobbva.harecservice.impl;
/**
 * An XML BodyMovimientosXContratoRq(@http://grupobbva.com.pe/HarecService/).
 *
 * This is a complex type.
 */
public class BodyMovimientosXContratoRqImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements pe.com.grupobbva.harecservice.BodyMovimientosXContratoRq
{
    
    public BodyMovimientosXContratoRqImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName CONTRATO$0 = 
        new javax.xml.namespace.QName("http://grupobbva.com.pe/HarecService/", "contrato");
    private static final javax.xml.namespace.QName DESDE$2 = 
        new javax.xml.namespace.QName("http://grupobbva.com.pe/HarecService/", "desde");
    private static final javax.xml.namespace.QName HASTA$4 = 
        new javax.xml.namespace.QName("http://grupobbva.com.pe/HarecService/", "hasta");
    
    
    /**
     * Gets the "contrato" element
     */
    public java.lang.String getContrato()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTRATO$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "contrato" element
     */
    public pe.com.grupobbva.harecservice.Contrato2 xgetContrato()
    {
        synchronized (monitor())
        {
            check_orphaned();
            pe.com.grupobbva.harecservice.Contrato2 target = null;
            target = (pe.com.grupobbva.harecservice.Contrato2)get_store().find_element_user(CONTRATO$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "contrato" element
     */
    public void setContrato(java.lang.String contrato)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONTRATO$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CONTRATO$0);
            }
            target.setStringValue(contrato);
        }
    }
    
    /**
     * Sets (as xml) the "contrato" element
     */
    public void xsetContrato(pe.com.grupobbva.harecservice.Contrato2 contrato)
    {
        synchronized (monitor())
        {
            check_orphaned();
            pe.com.grupobbva.harecservice.Contrato2 target = null;
            target = (pe.com.grupobbva.harecservice.Contrato2)get_store().find_element_user(CONTRATO$0, 0);
            if (target == null)
            {
                target = (pe.com.grupobbva.harecservice.Contrato2)get_store().add_element_user(CONTRATO$0);
            }
            target.set(contrato);
        }
    }
    
    /**
     * Gets the "desde" element
     */
    public java.lang.String getDesde()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DESDE$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "desde" element
     */
    public org.apache.xmlbeans.XmlString xgetDesde()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESDE$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "desde" element
     */
    public boolean isSetDesde()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DESDE$2) != 0;
        }
    }
    
    /**
     * Sets the "desde" element
     */
    public void setDesde(java.lang.String desde)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DESDE$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DESDE$2);
            }
            target.setStringValue(desde);
        }
    }
    
    /**
     * Sets (as xml) the "desde" element
     */
    public void xsetDesde(org.apache.xmlbeans.XmlString desde)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESDE$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DESDE$2);
            }
            target.set(desde);
        }
    }
    
    /**
     * Unsets the "desde" element
     */
    public void unsetDesde()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DESDE$2, 0);
        }
    }
    
    /**
     * Gets the "hasta" element
     */
    public java.lang.String getHasta()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HASTA$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "hasta" element
     */
    public org.apache.xmlbeans.XmlString xgetHasta()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(HASTA$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "hasta" element
     */
    public boolean isSetHasta()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(HASTA$4) != 0;
        }
    }
    
    /**
     * Sets the "hasta" element
     */
    public void setHasta(java.lang.String hasta)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HASTA$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(HASTA$4);
            }
            target.setStringValue(hasta);
        }
    }
    
    /**
     * Sets (as xml) the "hasta" element
     */
    public void xsetHasta(org.apache.xmlbeans.XmlString hasta)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(HASTA$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(HASTA$4);
            }
            target.set(hasta);
        }
    }
    
    /**
     * Unsets the "hasta" element
     */
    public void unsetHasta()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(HASTA$4, 0);
        }
    }
}
